Repository navigation
Fix documentation errors in Android.Graphics (R138) - #1645
Merged
jonathanpeppers merged 1 commit intoNov 20, 2026
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the documentation-only changes.
No open issues 🎉
What changed in this PR
Corrects four documentation statements across three Android.Graphics files to match Android 37.2 sources. No API or runtime behavior changes.
Changes:
- Clarifies
RecordingCanvasalpha-channel behavior and corrects the inner corner-radius description. - Removes incorrect Android 16 references from
Region.Setand theRasterizerconstructor.
| File | Description |
|---|---|
| docs/xml/Android.Graphics/Region.xml | Removes the version-specific label from Set(Region) return documentation. |
| docs/xml/Android.Graphics/RecordingCanvas.xml | Corrects hasAlpha and innerRy parameter descriptions. |
| docs/xml/Android.Graphics/Rasterizer.xml | Removes the version-specific label from the constructor summary. |
Review effort: Balanced
Member
Author
|
@dalexsoto review |
dalexsoto
approved these changes
Nov 20, 2026
dalexsoto
left a comment
Member
There was a problem hiding this comment.
Reviewed 3b016cb6 against main at f4688ad3. This is a static, read-only review.
RecordingCanvas.DrawDoubleRoundRect,innerRy: "inner rectangle" is correct.BaseRecordingCanvas.drawDoubleRoundRect(android-17.0.0_r1, L402–407) passesinner.left..inner.bottom, innerRx, innerRytonDrawDoubleRoundRect. The "outer" wording is an upstream Javadoc typo (Canvas.javaL2098).RecordingCanvas.DrawBitmap(int[], int, int, int, int, int, int, bool, Paint),hasAlpha: the overload forwards to the float overload (BaseRecordingCanvas.javaL174–179). The new text is the official Javadoc (Canvas.javaL1680–1681) and matches the float overload in this file.Region.Set(Region)returnstrueunconditionally after avoidnativeSetRegion(Region.javaL95–98; the code is the same at android-5.0.0_r1). TheRasterizerconstructor has no native peer (only an emptyfinalize()). The wording without a version label is accurate for both.- The three files parse. The diff is limited to the four edited lines, and line endings and encoding are unchanged. In the 37 files from
PointF.xmltoYuvImage.xmlat this head I found no remaining "Android 1x" version labels, no orphan params and no placeholders. - On the
DrawMeshuncertain finding: Skia'sSkCanvas::drawMeshdocs (include/core/SkCanvas.hL2107, L2116–2118) say the blender is ignored when the mesh does not output color, which supports the current text. - Out of scope, for a follow-up:
Canvas.xmlhas the same two problems, at L1778 (the "Android 16"hasAlphatext) and L2338 (innerRy"outer rectangle").
jonathanpeppers
deleted the
jonathanpeppers-review-r138-android-graphics
branch
November 20, 2026 07:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Review item R138: AI-authored documentation changes since
86f7744a1in 38docs/xml/Android.Graphicsfiles (PointF through YuvImage; list from the campaign item file). All listed files still exist after #1594. No placeholders were left in scope.Sources: Android SDK
source-37.2_r01.zip(SHA2569d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84).Fixes (4)
RecordingCanvas.DrawDoubleRoundRect(RectF, float, float, RectF, float, float, Paint),innerRy: the imported text said "on the outer rectangle". That is an upstream typo.BaseRecordingCanvas.javadrawDoubleRoundRectpassesinnerRx, innerRytogether withinner.left..inner.bottomto the inner parameters ofnDrawDoubleRoundRect. The siblinginnerRxtext already says "inner". Changed to "inner rectangle".RecordingCanvas.DrawBitmap(int[], int, int, int, int, int, int, bool, Paint),hasAlpha: removed AI text that described native storage "in the Android 16 implementation". These are API 37 docs.BaseRecordingCanvas.java:174-179shows that this overload calls thefloat x, float yoverload, so I used the officialhasAlphatext of that overload (the same text as the float overload in this file).Region.Set(Region), returns: removed the wrong "Android 16" label.Region.java:92-95(37.2) returnstruewith no condition.Rasterizer()constructor, summary: removed the wrong "on Android 16" label.Rasterizer.java(37.2) has no native peer, onlyfinalize().Uncertain findings (not changed)
RecordingCanvas.DrawMesh,blendMode: the text "the operation is ignored if the mesh has no color output" is not in the Android Javadoc (BaseCanvas.javadrawMesh). Thenull->BlendMode.Modulatepart is correct (BaseRecordingCanvas.java:618-620). The Java sources do not include the native mesh code, so I cannot prove or disprove the "ignored" claim.Checks
git diff --checkpasses.To be addedplaceholders.crefvalues in the 38 files resolve, except externalSystem.*types and one pre-AIT:Android.Graphics._Color(out of scope).